package com.medata.repository;

import com.medata.dataObject.Loglogin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;

public interface LogloginRepository extends JpaRepository<Loglogin,Integer> {

    Page<Loglogin> findByLogtimeBetweenAndActionid(Timestamp startTime, Timestamp endTime, Integer actionid, Pageable pageable);

    void deleteByLogtimeBetweenAndActionid(Timestamp startTime, Timestamp endTime,Integer actionid);
}
